import React, { Component } from 'react';
const Header = (props) => {
  return (
    <div>
      { 
        props.header
      }
      <hr />
      {
        props.content
      }
    </div>
  )
}

class App extends Component {
  render() {
    return (
      <div>
        <Header
          header = {<h1>hello React</h1>}
          content = {<div>如此强大</div>}
        >
        </Header>

        <Header
          header = '11111'
          content = '22222'
        >
        </Header>
      </div>
    );
  }
}

export default App;